
please wait
int strcmp ( const char * str1, const char * str2 );
return value | indicates |
---|---|
<0 | the first character that does not match has a lower value in ptr1 than in ptr2 |
0 | the contents of both strings are equal |
>0 | the first character that does not match has a greater value in ptr1 than in ptr2 |
|
|
Guess my favourite fruit? orange Guess my favourite fruit? apple Correct answer! |